# abs() - 返回绝对值
print(abs(-5))  # 5
print(abs(3.14))  # 3.14

# round() - 四舍五入
print(round(3.14159, 2))  # 3.14
print(round(3.5))  # 4

# pow() - 幂运算
print(pow(2, 3))  # 8
print(pow(2, 3, 5))  # 3 (2^3 % 5)

# divmod() - 返回商和余数
quotient, remainder = divmod(10, 3)
print(quotient, remainder)  # 3 1


# 最值函数
nums = [1, 2, 3, 43, 4, 2231, 123, 13, 18]
char_str = "abcdeghHAIQWUcd"

print("数字最大之日=", max(nums))
print("字符最大值=", max(char_str))


false_value_list = ["", 0, 0.0, set(), (), False, []]

for item in false_value_list:
    print(bool(item))
